<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php 
		$category = get_the_category();
		if(isset($category[0])): 
		?>
		<a class="category-tag" href="<?php echo get_category_link($category[0]->term_id ); ?>">
			<div class="tooltip left tooltip-display" role="tooltip">
				<div class="tooltip-arrow"></div>
				<div class="tooltip-inner">
					<?php echo $category[0]->cat_name; ?>
				</div>
			</div>
		</a>
		<?php endif; ?>
		<?php
			// if ( is_single() ) :
			// 	the_title( '<h3 class="entry-title">', '</h3>' );
			// else :
				the_title( sprintf( '<h4 class="entry-title"><a href="%s" rel="bookmark"><strong>&nbsp', esc_url( get_permalink() ) ), '</strong></a></h4>' );
			// endif;
		?>
	</header>
	<div class="row">
		<div class="post-img-col col-sm-3">
		<a target="_blank" href="<?php the_permalink(); ?>"><img class="thumb" src="<?php echo get_bloginfo("template_url") ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&h=123&w=200&q=90&zc=1&ct=1" alt="<?php the_title(); ?>" /></a>
		</div>
		<div class="col-sm-9">
			<div class="entry-content">
				<?php
					echo huajipro_strimwidth(strip_tags($post->post_content) , 0 , 170 , '...');
				?>
			</div>
		</div>
	</div>
	<div class="post-properties">
		<div>
				<?php if( !is_author()): ?>
					<span> <i class="glyphicon glyphicon-user"></i> <a target="_blank" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>"><?php echo get_the_author() ?></a></span>
				<?php endif; ?>
				<span> <i class="glyphicon glyphicon-time"></i> <?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ) ?></span>
				<span> <i class="glyphicon glyphicon-fire"></i> <?php deel_views('℃'); ?></span>
				<span> <i class="glyphicon glyphicon-comment"></i>
				<?php if ( comments_open() ) 
				comments_popup_link( __( '暂无评论', 'huaji-pro' ));
				?>
				</span>
		</div>
	</div>
</article>
